﻿using ChestPainCenterSystem.Bll;
using ChestPainCenterSystem.Core;
using ChestPainCenterSystem.ThreeCenterManage;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace ChestPainCenterSystem.Areas.ChestPainCenter.Controllers
{
    public class FirstAidController : BaseController
    {
        //
        // GET: /ChestPainCenter/FirstAid/

        public ActionResult Index()
        {
            return View();
        }

        /// <summary>
        /// 获取当前急救人列表
        /// </summary>
        /// <returns></returns>
        public ActionResult GetPatientList()
        {
            OperateResult resultInfo = PatientManager.GetPatientList();
            return JsonDate(resultInfo);
        }

        /// <summary>
        /// 获取病人信息明细
        /// </summary>
        /// <param name="patientId"></param>
        /// <returns></returns>
        public ActionResult GetPatientDetail(string patientId)
        {
            OperateResult resultInfo = PatientManager.GetPatientDetail(patientId);
            return JsonDate(resultInfo);
        }
    }
}
